<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@page isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>MPI Exchange</title>
    <style type="text/css"><!--
body{font-family:sans-serif; text-align:center;}
div.container{width:520px; text-align:left;}
div.entry {
    clear:both;
}
label {
    width:187px;
    float:left;
    text-align:right;
    padding-top:2px;
    margin-bottom:13px;
    margin-right: 6px;
}
    --></style>
</head>
<body><center>
<div class="container">

    <h2>The Health Exchange Service Demo</h2>

    <p><strong>MPI-based identity</strong></p>

    <p>This demo is intended to show how to send patient records into an EHR system with MPI-based identity management. Examples of such systems include most existing hospital EHR systems, diagnostic labs, existing health exchange services. A typical MPI-based system can provide matches over multiple attributes including:</p>

    <ul>
        <li>Patient Name</li>
        <li>Date of birth (DOB)</li>
        <li>Alias / Previous Name</li>
        <li>Address</li>
        <li>Account Number</li>
        <li>Gender</li>
        <li>Race / Ethnicity</li>
        <li>Admission Date</li>
        <li>Discharge Date</li>
        <li>Service Type</li>
    </ul>

    <p>Before your application can send / receive data using MPI, you need to register your user's MPI attributes in the exchange service.</p>

<pre>
GET: /mpi/register?from=myapp&amp;uid=1234&amp;mpi_name=Michael+Yuan&amp;mpi_dob=11/24/1974&amp;mpi_address=1234+Main+Street+Austin+TX ...
</pre>

    <p>This method returns HTTP code 200 if the registration is successful. You can call this method again later to update the user's record.</p>

    <p>The exchange service will extract the necessary MPI attributes to send to the destination EHR at runtime.</p>


    <p><strong>How does it work?</strong></p>

    <p><i>Send a record</i></p>

    <p>Your application can make a web service call that says: <i>"send health record xyz for my user 1234 to EHR system in Hospital ABC"</i>. The web service request is like this:</p>

<pre>
POST: /mpi/send?from=myapp&amp;uid=1234&amp;to=ABC
    BODY: record in CCR format
</pre>

    <p>Upon receiving the request, the Health Exchange service will do the following.</p>

    <ol>
        <li>Find the MPI attributes required by the destination EHR system.</li>
        <li>Format / translate the record data to a format accepted by the destination.</li>
        <li>Send the record with MPI attributes to the destination's connector / agent.</li>
    </ol>


    <p><i>Receive a record</i></p>

    <p>To receive a record, your system needs to connected to Health Exchange via an HTTP callback API, or you can install our software agent inside your firewall to write directly to your database. Once a record arrives for one of your users, the exchange will send you the necessary MPI atributes and the record. Your application is responsible of actually matching the MPI attributes to users in your database.</p>


    <p><i>Search / Retrievial a record</i></p>
    
    <p>To search / retrieve records from another EHR system, you can issue the following web services call:</p>

<pre>
GET: /getData?for=myapp&amp;uid=1234&amp;from=ABC
</pre>

    <p>The user is authenticated via MPI attributes required by ABC, and data is returned in a format "myapp" understands. The search / retrievial only works when the user authorizes such access (e.g., she has a release form on file with ABC). It is up to the destination EHR's security policty to determine whether to provide the data.</p>


</div>
</center></body>
</html>
